﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminTemplate.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
    <link href="../css/project.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function OpenPopup() {
            popup("../Administrator/UploadImage");
            // document.getElementById('TextBox2').focus();
        }

        function popup(url) {

            var width = 'auto';
            var height = 'auto';
            var left = (screen.width - width) / 2;
            var top = (screen.height - height) / 2;
            var params = 'width=' + width + ', height=' + height;
            params += ', top=' + top + ', left=' + left;
            params += ', directories=no';
            params += ', location=no';
            params += ', menubar=no';
            params += ', resizable=no';
            params += ', scrollbars=no';
            params += ', status=no';
            params += ', toolbar=no';
            newwin = window.open(url, 'windowname5', params);
            if (window.focus) { newwin.focus() }
            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftMenu" runat="server">
    <% Html.RenderAction("LeftMenuAdmin", "Administrator"); %>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Add new project information</h2>
    <form action="addProject" method="post">
    <div class="pro-line">
        <div class="lbl-field">
            <%: ViewData["mess"] %></div>
    </div>
    <fieldset>
        <legend>Project informations</legend>
        <div class="pro-line">
            <div class="lbl-title">
                <label for="ProName">
                    Project Name</label>
            </div>
            <div class="lbl-field">
                <input type="text" class="input-txt" id="proName" name="proName" />
            </div>
        </div>
        <div class="pro-line">
            <div class="lbl-title">
                <label for="picture">
                    Picture</label></div>
            <div class="lbl-field">
                <input type="text" class="input-txt" id="ProImg" name="ProImg" />
                <input type="button" value="Choose Picture" id="img" name="img" onclick="OpenPopup()" />
            </div>
        </div>
        <div class="pro-line">
            <div class="lbl-title">
                <label for="partner">
                    Parter Name</label></div>
            <div class="lbl-field">
                <input type="text" class="input-txt" id="partner" name="partner" />
            </div>
        </div>
        <div class="pro-line">
            <div class="lbl-title">
                <label for="_intro">
                    Introduction</label></div>
            <div class="lbl-field">
                <input type="text" class="input-txt" id="intro" name="intro" />
            </div>
        </div>
        <div class="pro-line">
            <div class="lbl-title">
                <label for="link">
                    Link</label></div>
            <div class="lbl-field">
                <input type="text" class="input-txt" id="link" name="link" />
            </div>
        </div>
        <div class="pro-line">
            <div class="lbl-title">
                <label for="finishtime">
                    Finished Time</label></div>
            <div class="lbl-field">
                <input type="text" class="input-txt" id="finished" name="finished" />
            </div>
        </div>
        <div class="pro-line">
            <div class="lbl-title">
                <label for="author">
                    Author</label></div>
            <div class="lbl-field">
                <input type="text" class="input-txt" id="author" name="author" />
            </div>
        </div>
        <div class="pro-line">
            <div class="lbl-title">
                <label for="discount">
                    Discount</label></div>
            <div class="lbl-field">
                <input type="text" class="input-txt" id="discount" name="discount" />
            </div>
        </div>
        <div class="pro-line">
            <div class="lbl-field">
                <input type="submit" class="btn-area" value="New Project" />
            </div>
        </div>
    </fieldset>
    </form>
</asp:Content>
